package com.monitor.security;

import com.monitor.network.ScreenCaptureService;

/**
 * 屏幕截图管理器
 * 负责初始化和管理屏幕截图服务
 */
public class ScreenCaptureManager {
    private static ScreenCaptureService screenCaptureService;
    
    /**
     * 初始化并启动屏幕截图服务
     * 
     * @param deviceId 设备ID
     */
    public static void startScreenCaptureService(Long deviceId) {
        if (screenCaptureService == null) {
            screenCaptureService = new ScreenCaptureService(deviceId);
            screenCaptureService.start();
        }
    }
    
    /**
     * 停止屏幕截图服务
     */
    public static void stopScreenCaptureService() {
        if (screenCaptureService != null) {
            screenCaptureService.stop();
            screenCaptureService = null;
        }
    }
}